<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>六西格玛知识管理</title>
<link href="<?php echo $this->baseUrl ?>/public/style/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/daterangepicker.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl ?>/public/style/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/daterangepicker.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/scripts/jquery-ui.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl ?>/public/fckeditor/fckeditor.js"></script>
</head>

<body>
<!--头部-->
<?php echo $this->partial('common/header.html', array('template'=>$this->template, 'baseUrl'=>$this->baseUrl)) ?>

<div class="main-box" id="mainBox">
	<div class="third-menu">
        <?php echo $this->partial('common/operation.html', array('template'=>$this->template,'uid'=>$this->student[0]['user_id'], 'baseUrl'=>$this->baseUrl, 'id'=>$_GET['student_id'])) ?>
        <div class="menu-title"><span class="icon"></span>学生详细页</div>
  	</div>
    <div class="separate-line"></div>
    
    <div class="main-form">
        <div class="project-show">
            <h2 class="project-title"><?php echo $this->student[0]['name']; ?></h2>
            <div class="student-info">
            	<div class="student-photo">
                	<?php if ($this->student[0]['photo']): ?>
                    <img src="<?php echo $this->baseUrl ?>/<?php echo $this->student[0]['photo'];?>" width="160" height="200" />
                    <?php else: ?>
                    <img src="<?php echo $this->baseUrl ?>/public/images/default.jpg" width="160" height="200" />
                    <?php endif; ?>
                </div>
                <div class="student-introduce">
                	<ul>
                    	<li>学生性别：
                        	<?php echo $this->student[0]['sex'] == 1?'男':'女'; ?>
                        </li>
                        <li>学习时职务：
                            <?php echo !empty($this->student[0]['duties'])?$this->student[0]['duties']:'未填写'; ?>
                    	</li>
                    	<li>现任职务：
                            <?php echo !empty($this->student[0]['duties_now'])?$this->student[0]['duties_now']:'未填写'; ?>
                    	</li>
                        
                        <li>所属客户：
                            <?php if($this->student[0]['company_id']): ?>
                            <a href="<?php echo $this->baseUrl ?>/company/detail?company_id=<?php echo $this->student[0]['company_id']; ?>" target="_blank"><?php echo $this->company_name ?></a>
                            <?php else: ?>
                            未填写
                            <?php endif; ?>
                        </li>
                        <li>学生类型：
                        <?php foreach ($this->conf->projectType as $k => $v): ?>
                            <?php if($this->student_cat==$k): ?><?php echo $v; ?><?php endif; ?>
                        <?php endforeach; ?>
                        </li>
                        <li>邮件地址：
                        	<?php echo !empty($this->student[0]['email'])?$this->student[0]['email']:'未填写'; ?>
                        </li>
                        <li>固定电话：
                            <?php echo !empty($this->student[0]['telephone'])?$this->student[0]['telephone']:'未填写'; ?>
                        </li>
                        <li>移动电话：
                            <?php echo !empty($this->student[0]['mobile'])?$this->student[0]['mobile']:'未填写'; ?>
                        </li>
                    </ul>    
                </div>
            </div>
            <div class="project-desc">
            	<div class="project-border">
            	个人介绍：<?php echo !empty($this->student[0]['summary'])?$this->student[0]['summary']:'暂无信息'; ?>
                </div>
            </div>
        </div>
        
        <?php if ($this->tag_current): ?>
        <div class="project-show">
        	<div class="project-desc">
            	<div class="project-border">
                <dl class="class-info">
                	<dd>
                    <b>相关标签：</b>
                	<?php foreach ($this->tag_current as $key => $val): ?>
                    	<span>
                        <a href="<?php echo $this->baseUrl ?>/tag/detail?tag_id=<?php echo $val['tag_id']; ?>" target="_blank"><?php echo $val['name']; ?></a>
                        </span>
                    <?php endforeach; ?>
                    <a href="<?php echo $this->baseUrl ?>/student/tag?student_id=<?php echo $_GET['student_id']; ?>" class="btn_01" target="_blank" style="float:right">编辑</a>
                    </dd>
                </dl>
                </div>
            </div>
        </div>
        <?php endif; ?>
        
        <?php if($this->projects): ?>
        <div class="project-show">
        	<div class="project-desc">
            <div class="project-border">
                <dl class="class-info">
                    <dd>
                    <table width="760px">
                    <tr align="center"><th width="100px">项目名称</th><th width="15%">项目类型</th><th width="25%">项目时间</th><th width="30%">是否为优秀项目</th></tr>
                    <?php foreach ($this->projects as $key => $val): ?>
                        <tr align="center">
                        	<td><a href="<?php echo $this->baseUrl ?>/project/detail?project_id=<?php echo $val['project_id']; ?>" target="_blank" title="<?php echo $val['title']; ?>"><?php echo $val['title']; ?></a></td>
                            <td>
                            <?php foreach ($this->conf->projectType as $k => $v): ?>
                                <?php if($val['category']==$k): ?><?php echo $v; ?><?php endif; ?>
                            <?php endforeach; ?>
                            </td>
                            <td><?php echo !empty($val['start_time'])?date('Y年',$val['start_time']):'未填写'; ?></td>
                            <td><a href="<?php echo $this->baseUrl ?>/project/editexcellence?project_id=<?php echo $val['project_id']; ?>&excellence=<?php echo $val['excellence']==1?0:1; ?>" title="点击修改" style="text-decoration:underline"><?php echo $val['excellence']==1?'是':'否'; ?></a></td>
                        </tr>
                    <?php endforeach; ?>
                    </table>
                    </dd>
                </dl>
            </div>
            </div>
        </div>
        <?php endif; ?>
        
        <?php if($this->classes): ?>
        <div class="project-show">
        	<div class="project-desc">
            <div class="project-border">
                <dl class="class-info">
                    <dd>
                    <table width="760px">
                    <tr align="center"><th width="100px">班级名称</th><th width="15%">开班地点</th><th width="25%">开班时间</th><th width="30%">证书编号</th></tr>
                    <?php foreach ($this->classes as $key => $val): ?>
                        <tr align="center">
                        	<td><a href="<?php echo $this->baseUrl ?>/class/detail?class_id=<?php echo $val['class_id']; ?>" target="_blank"><?php echo $val['name']; ?></a></td>
                            <td><?php echo $val['location']; ?></td>
                            <td><?php echo !empty($val['start_time'])?date('Y-m-d',$val['start_time']):'未填写'; ?></td>
                            <td>
                            	<b id="edit_verify_id">
                                <form method="post" action="<?php echo $this->baseUrl ?>/student/editverifyid">
                                <input type="hidden" name="student_id" value="<?php echo $_GET['student_id']; ?>" />
                                <input type="hidden" name="class_id" value="<?php echo $val['class_id']; ?>" />
                            	<input type="text" value="<?php echo $val['verify_id']; ?>" style="border:none; background-color:#FFF5F3; cursor:pointer; height:22px; line-height:22px;" class=" verify_id" name="verify_id" />
                                <input type="submit" class="button" value="更新" style="display:none" id="verify_id_<?php echo $val['class_id']; ?>" />
                                </form>
                                </b>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                    </table>
                    </dd>
                </dl>
            </div>
            </div>
        </div>
        <?php endif; ?>
		
        <div class="mod-comment">
            <div class="head">评论</div>
            <p class="line"></p>
            <?php if($this->comments): ?>
          	<ul class="comment-list">
            	<?php foreach ($this->comments as $key => $val): ?>
                <li>
                    <span class="user"><?php echo $val['teacher_name'];?>：</span>
                    <span class="score">评分：<font color="#CC0000"><?php echo $val['level']; ?></font></span>
                    <span class="recommend">推荐：
                    <?php 
                    	if($val['recommend']==0){
                        	echo '未选择';
                        }elseif($val['recommend']==1){
                        	echo "<font color='green'>推荐</font>";
                        }elseif($val['recommend']==2){
                        	echo "<font color='red'>不推荐</font>";
                        }
                    ?>
                    </span>
                    <span class="time">评论时间：<i><?php echo date('Y-m-d H:i:s',$val['create_time']); ?></i></span>
                    <div class="content">
                    <?php echo $val['content']; ?>
                    </div>
                </li>
                <?php endforeach; ?>
            </ul>
          	<div class="page-bar">
                <div>总数：<span class="total-count"><?php echo $this->total ?></span></div>
                <div>
                <?php if ($this->page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/student/detail?student_id=<?php echo $this->student[0]['student_id']; ?>&page=1">首页</a>
                <?php else: ?>
                首页
                <?php endif; ?>
                <?php if ($this->page > 1): ?>
                <a href="<?php echo $this->baseUrl ?>/student/detail?student_id=<?php echo $this->student[0]['student_id']; ?>&page=<?php echo $this->page-1 ?>">上一页</a>
                <?php else: ?>
                上一页
                <?php endif; ?>
                <?php if ($this->page < $this->pages): ?>
                <a href="<?php echo $this->baseUrl ?>/student/detail?student_id=<?php echo $this->student[0]['student_id']; ?>&page=<?php echo $this->page+1 ?>">下一页</a>
                <?php else: ?>
                下一页
                <?php endif; ?>
                <?php if ($this->page < $this->pages): ?>
                <a href="<?php echo $this->baseUrl ?>/student/detail?student_id=<?php echo $this->student[0]['student_id']; ?>&page=<?php echo $this->pages ?>">尾页</a>
                <?php else: ?>
                尾页
                <?php endif; ?>
                </div>
                <div>页数：<span class="page-detail"><?php echo $this->page ?>/<?php echo $this->pages ?></span></div>
          	</div>
            <?php endif; ?>
          
          	<div class="comment-form">
                <form method="post" name="form_commend" action="<?php echo $this->baseUrl?>/comment/add">
                <div class="summary">
                    <input type="hidden" name="cid" value="<?php echo $this->student[0]['student_id'];?>" />
                    <input type="hidden" name="category" value="2" />
                    <input type="hidden" name="template" value="<?php echo $this->template?>" />
                    <span class="float-right">
                        <label for="recommend">推荐：</label>
                        <select name="recommend" class="input-text">
                            <option>请选择...</option>
                            <option value="1">推荐</option>
                            <option value="2">不推荐</option>
                        </select>
                    </span>
                    <label for="score">评分：</label>
                    <select name="score" class="input-text">
                    	<?php foreach ($this->conf->score as $key => $val): ?>
                        <option value="<?php echo $val; ?>"><?php echo $val; ?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
                <p class="content">
                    <label for="content">评论内容：</label>
                    <textarea name="content" class="input-textarea"></textarea>
                </p>
                <p><input type="submit" class="button" value="确认提交" style="margin-left:0" /></p>
            	</form>
          	</div>
        </div>
	</div>
</div>

<script>
$(document).ready(function(){
	$(".verify_id").focus(function(){
		$(this).css({border:"1px solid #D5D5D5",cursor:"default"});
		$(this).next().css({display:""});
	});
});
</script>








<!--底部-->
<?php echo $this->partial('common/footer.html') ?>
</body>
</html>
